<titlemenu></titlemenu>
<div class="dj-list">
    <div class="dj-list-body">
        <div party-tree data-selectdzzdm="selectparams.selectdzzdm" data-selectdzzmc="selectparams.selectdzzmc"
             data-isshowxz="0" data-userid="selectparams.userid" data-dzzdm="selectparams.selectdzzdm"
             data-showtogglebtn="true" data-zzfbtype="selectparams.zzfbType" data-isunfold="selectparams.isunfold"
             data-defaultselected="selectparams.defaultselected"></div>
        <div class="dj-list-content">
            <div class="card">
                <div activate-input activate-select class="header search-header">
                    <div fold-partytree data-isunfold="selectparams.isunfold"></div>
                    <div class="search-param-panel">
                        <div class="search-input">
                            <form class="form-horizontal">
                                <div class="row clearfix form-inline">
                                    <div class="col-lg-2 col-md-2 dj-label">
                                        <label>当前选中组织</label>
                                    </div>
                                    <div class="col-lg-2 col-md-2">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <div class="input-group input-group-search">
                                                    <input name="selectdzzmc" type="text" style="min-width: 90px"
                                                           ng-model="selectparams.selectdzzmc" class="form-control"
                                                           ng-disabled="true"/>
                                                    <span class="input-group-addon"
                                                          ng-click="setisunfold()">选择</span>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-lg-2 col-md-2 dj-label">
                                        <label>领导集体届次</label>
                                    </div>
                                    <div class="col-lg-2 col-md-2">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <input name="ldjtjc" class="form-control" type="text"
                                                       ng-model="selectparams.ldjtjc"
                                                       placeholder="" ng-keypress="($event.which === 13)?search():0"/>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-lg-2 col-md-2 dj-label">
                                        <label>到期换届开始时间</label>
                                    </div>
                                    <div class="col-lg-2 col-md-2">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <input name="gjjmrq_begin" class="form-control" ng-change="search()"
                                                       autocomplete="off"
                                                       autoclose="true"
                                                       data-date-format="yyyyMMdd" data-date-type="date"
                                                       ng-model="selectparams.gjjmrq_begin"
                                                       placeholder="" bs-datepicker/>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row clearfix form-inline" ng-show="isShow">
                                    <div class="col-lg-2 col-md-2 dj-label">
                                        <label>到期换届结束时间</label>
                                    </div>
                                    <div class="col-lg-2 col-md-2">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <input name="gjjmrq_end" class="form-control" type="text"
                                                       ng-change="search()"
                                                       autocomplete="off"
                                                       autoclose="true"
                                                       data-date-format="yyyyMMdd" data-date-type="date"
                                                       ng-model="selectparams.gjjmrq_end"
                                                       placeholder="" bs-datepicker/>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-lg-2 col-md-2 dj-label">
                                        <label>查询最大届次</label>
                                    </div>
                                    <div class="col-lg-2 col-md-2">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <select class="form-control show-tick" ng-change="search()"
                                                        ng-model="selectparams.sfzdjc"
                                                        ng-options="type.dickey as type.dicvalue for type in boolList"
                                                        class="form-control"
                                                        name="sfzdjc">
                                                    <option value="" selected>--全部--</option>
                                                </select>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-lg-2 col-md-2 dj-label">
                                        <label>组织类别</label>
                                    </div>
                                    <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <select class="form-control show-tick" ng-model="selectparams.zzlb"
                                                        ng-change="search()"
                                                        ng-options="type.bm as type.hzmc for type in zzlbdmList"
                                                        class="form-control"
                                                        name="dzzmc">
                                                    <option value="">--全部--</option>
                                                </select>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                                <div class="row clearfix form-inline" ng-show="isShow">
                                    <div class="col-lg-2 col-md-2 dj-label">
                                        <label>基层分类</label>
                                    </div>
                                    <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2">
                                        <div class="form-group">
                                            <div class="form-line">
                                                <select class="form-control show-tick" ng-change="search()"
                                                        ng-model="selectparams.jczzfl"
                                                        ng-options="type.bm as type.hzmc for type in jczzflList"
                                                        class="form-control"
                                                        name="jczzfl">
                                                    <option value="">--全部--</option>
                                                </select>
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-lg-2 col-md-2 dj-label">

                                    </div>
                                    <div class="col-lg-2 col-md-2 col-sm-2 col-xs-2">
                                        <div class="form-group">
                                            <div class="form-line">

                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </form>
                        </div>
                        <div class="search-btn" style="margin-right: 20px;">
                            <div style="min-width: 13em">
                                <span class="moreSpan" ng-click="isShowClick()"
                                      style='padding-right:1em;cursor:pointer;'>{{moreTxt}}<i class="material-icons"
                                                                                              style="position: relative;top:7px;">{{isShow ? 'expand_less' : 'expand_more'}}</i></span>
                                <button class="btn btn-default1"
                                        ng-click="search()">查询
                                </button>
                                <button class="btn btn-default1 btn-reset"
                                        ng-click="reset()">重置
                                </button>
                                <!--<button role-permission-code="gradeList.btnExport" type="button"-->
                                <!--class="btn  btn-default1" ng-click="export()">导出-->
                                <!--</button>-->
                                <!--<button role-permission-code="gradeList.btnAdd" class="btn btn-default1"-->
                                <!--ng-click="addGrade()">新增-->
                                <!--</button>-->
                            </div>
                        </div>
                    </div>
                    <div class="search-btn" style="margin-right: 20px;">
                        <div style="float: right">
                            <!--<button role-permission-code="gradeList.btnSearch" class="btn btn-default1"-->
                            <!--ng-click="search()">查询-->
                            <!--</button>-->
                            <button role-permission-code="gradeList.btnExport" type="button"
                                    class="btn  btn-default1" ng-click="export()">导出
                            </button>
                            <button role-permission-code="gradeList.btnAdd" class="btn btn-default1"
                                    ng-click="addGrade()">新增
                            </button>
                        </div>
                    </div>
                </div>
                <div class="body">
                    <div class="table-responsive list-table-panel">
                        <table class="table table-bordered table-striped table-hover js-basic-example dataTable text-nowrap">
                            <thead>
                            <tr>
                                <th>序号</th>
                                <th>党组织名称</th>
                                <th>届次</th>
                                <th>上次换届时间</th>
                                <th>到期换届时间</th>
                                <!-- <th>领导集体届次</th>
                                 <th>党组织名称</th>
                                 <th>选举方式</th>
                                 <th>该届届满日期</th>
                                 <th>领导集体当选日期</th>
                                 <th>应到会人数</th>
                                 <th>实到会人数</th>
                                 <th>全委人数</th>
                                 <th>全委实到人数</th>
                                 <th>批准委员名额</th>
                                 <th>批准常委名额</th>-->
                                <th>操作</th>
                            </tr>
                            </thead>
                            <tbody>
                            <tr ng-repeat="it in dataList">
                                <td scope="row" class="text-center">
                                    {{selectparams.pagesize*(selectparams.pageindex-1)+$index+1}}
                                </td>
                                <td>{{it.DZZMC}}</td>
                                <td class="text-center">{{it.LDJTJC}}</td>
                                <td class="text-center">{{it.LDJTDXRQ}}</td>
                                <td class="text-center">{{it.GJJMRQ}}</td>
                                <!-- <td>{{it.LDJTJC}}</td>
                                 <td>{{it.DZZMC}}</td>
                                 <td>{{it.XJFSMC}}</td>
                                 <td>{{it.GJJMRQ}}</td>
                                 <td>{{it.LDJTDXRQ}}</td>
                                 <td>{{it.YDHRS}}</td>
                                 <td>{{it.SDHRS}}</td>
                                 <td>{{it.QWRS}}</td>
                                 <td>{{it.QWSDRS}}</td>
                                 <td>{{it.PZWYME}}</td>
                                 <td>{{it.PZCWME}}</td>-->
                                <td class="text-center">
                                    <button
                                            class="btn td-btn bg-light-green waves-effect"
                                            ng-click="detailGrade(it.BZJCXXBS)"
                                            title="查看">
                                        查看
                                    </button>
                                    <button role-permission-code="gradeList.btnUpdate"
                                            class="btn td-btn bg-light-green waves-effect"
                                            ng-click="editGrade(it.BZJCXXBS)"
                                            title="修改">
                                        修改
                                    </button>
                                    <button role-permission-code="gradeList.btnDelete"
                                            class="btn td-btn bg-pink waves-effect"
                                            ng-click="delete(it.BZJCXXBS)" title="删除">
                                        删除
                                    </button>
                                </td>
                            </tr>
                            <tr ng-if="pageInfo.ptotal==0">
                                <td colspan="6" style="text-align:center">暂无数据</td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <pagination data-pageindex="selectparams.pageindex" data-pagesize="selectparams.pagesize"
                                data-ptotal="pageInfo.ptotal"></pagination>
                </div>
            </div>
        </div>
    </div>
</div>